if (!(this.service.getPref("useWine", true) || this.name == this.service.defaultDM))
return null;
if(!FlashGotDM.wine) {
// check for wine
var wine = CC["@mozilla.org/file/local;1"].createInstance(CI.nsILocalFile);
var winePaths = this.service.getPref("wine.paths", "/usr/bin/wine:/usr/local/bin/wine:/opt/local/bin/wine:/Applications/Darwine/Wine.bundle/Contents/bin/wine");
if (!winePaths) return null;
for each(var winePath in winePaths.split(/[;:,]+/)) {
try {
wine.initWithPath(winePath);
if(wine.exists()) {
FlashGotDM.wine = wine;
break;
}
} catch(e) {}
}
if(!FlashGotDM.wine) return null;
FlashGotDM.wineExecutables = [];
}
FlashGotDM.wineExecutables.push(exeFile);
return exeFile;
}
if (FlashGotDMMac.isMac) return null;
return /\\.*\.sh$/i.test(path) ? null : exeFile;
}
,
get supported() {
if (typeof(this._supported) == "boolean") return this._supported;